﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using DevDL.UserLimit.Models;

namespace XinYuan.Service
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码和配置文件中的接口名“IOperatorService”。
    [ServiceContract]
    public interface IOperatorService
    {
        [OperationContract]
        bool LoginIn(string str1, string str2, ref Operator userInfo, ref string msg);
        [OperationContract]
        List<Operator> GetOperators();

        [OperationContract]
        int Insert(Operator ope);

        [OperationContract]
        int Delete(int id);

        [OperationContract]
        int Modify(Operator ope);

        [OperationContract]
        List<Operator> GetOperatorById(int id);

        [OperationContract]
        Operator GetUserInfoByUserId(string userId);
    }
}
